package com.yanggu.scala.chapater12

//case语句的中置表达式
object MidCaseDemo01 {

  def main(args: Array[String]): Unit = {
    //匹配List序列
    List(1, 3, 5, 9) match {
      case first :: second :: rest => println(first + ", " + second + "," + rest)
      case _ => println("未匹配到数据")
    }
  }

}
